package org.csu.mybigpro.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("replies")
public class Replies {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("thread_id")
    private Long threadId;

    @TableField("author_id")
    private Long authorId;

    @TableField("content")
    private String content;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("thumbs_up_count")
    private Integer thumbsUpCount;

    @TableField("is_delete")
    private String isDelete;
}
